// This file was decompiled using VCSCM.ini published on 2021-01-30
{$CLEO .cs}

0000: NOP 
03A4: script_name 'HP_DRFT' 

:HP_DRFT_12
05DF: write_memory 6923802 size 1 value 64 virtual_protect 0 

:HP_DRFT_25
0001: wait 0 ms 
00D6: if and
0256:   player $player_char defined 
00E0:   player $player_char in_any_car 
004D: jump_if_false @HP_DRFT_25 
00D6: if and
84AA:   not player $player_char in_any_heli 
84A8:   not player $player_char in_any_boat 
84C9:   not player $player_char in_flying_vehicle 
847E:   not player $player_char on_any_bike 
004D: jump_if_false @HP_DRFT_25 
03C1: 0@ = player $player_char car_no_save 
0006: 13@ = 0 // @ = int 

:HP_DRFT_96
00D6: if 
8119:   not car 0@ wrecked 
004D: jump_if_false @HP_DRFT_12 
00D6: if 
00DC:   player $player_char in_car 0@ 
004D: jump_if_false @HP_DRFT_12 
00D6: if and
82BF:   not car 0@ sunk 
020D:   car 0@ flipped 
81F3:   not car 0@ airborne 
004D: jump_if_false @HP_DRFT_12 
00AA: store_car 0@ position_to 2@ 3@ 4@ 
05E7: 12@ = vehicle 0@ struct 
0084: 14@ = 12@ // $ = $ int 
0084: 15@ = 12@ // $ = $ int 
000A: 12@ += 112 // @ += int 
000A: 14@ += 116 // @ += int 
000A: 15@ += 132 // @ += int 
05E0: 12@ = read_memory 12@ size 4 virtual_protect 0 
05E0: 14@ = read_memory 14@ size 4 virtual_protect 0 
05E0: 15@ = read_memory 15@ size 4 virtual_protect 0 
0001: wait 0 ms 
00D6: if 
8119:   not car 0@ wrecked 
004D: jump_if_false @HP_DRFT_12 
00D6: if 
00DC:   player $player_char in_car 0@ 
004D: jump_if_false @HP_DRFT_12 
00D6: if and
82BF:   not car 0@ sunk 
020D:   car 0@ flipped 
81F3:   not car 0@ airborne 
004D: jump_if_false @HP_DRFT_12 
02E3: 1@ = car 0@ speed 
00D6: if 
00E1:   player 0 pressed_button 16 
004D: jump_if_false @HP_DRFT_12 
00D6: if 
0021:   1@ > 0.0 // @ > float 
004D: jump_if_false @HP_DRFT_447 
00D6: if 
0021:   1@ > 6.0 // @ > float 
004D: jump_if_false @HP_DRFT_467 
00D6: if 
0021:   1@ > 12.0 // @ > float 
004D: jump_if_false @HP_DRFT_487 
00D6: if 
0021:   1@ > 20.0 // @ > float 
004D: jump_if_false @HP_DRFT_507 
05DF: write_memory 6923802 size 1 value 64 virtual_protect 0 
0002: jump @HP_DRFT_520 

:HP_DRFT_447
05DF: write_memory 6923802 size 1 value 64 virtual_protect 0 
0002: jump @HP_DRFT_96 

:HP_DRFT_467
05DF: write_memory 6923802 size 1 value 0 virtual_protect 0 
0002: jump @HP_DRFT_520 

:HP_DRFT_487
05DF: write_memory 6923802 size 1 value 2 virtual_protect 0 
0002: jump @HP_DRFT_520 

:HP_DRFT_507
05DF: write_memory 6923802 size 1 value 32 virtual_protect 0 

:HP_DRFT_520
008C: 1@ = float_to_integer 1@ 
00AA: store_car 0@ position_to 5@ 6@ 4@ 
0407: create_coordinate 8@ 9@ 4@ from_car 0@ offset 0.0 0.1 0.0 
0067: 8@ -= 5@ // $ -= @ float 
0067: 9@ -= 6@ // $ -= @ float 
0067: 5@ -= 2@ // $ -= @ float 
0067: 6@ -= 3@ // $ -= @ float 
05A4: get_angle_between_vectors_origin_to 5@ 6@ and_origin_to 8@ 9@ store_to 11@ // never used in VC 
00AA: store_car 0@ position_to 5@ 6@ 4@ 
0407: create_coordinate 8@ 9@ 4@ from_car 0@ offset -0.02 0.1 0.0 
0067: 8@ -= 5@ // $ -= @ float 
0067: 9@ -= 6@ // $ -= @ float 
0067: 5@ -= 2@ // $ -= @ float 
0067: 6@ -= 3@ // $ -= @ float 
05A4: get_angle_between_vectors_origin_to 5@ 6@ and_origin_to 8@ 9@ store_to 7@ // never used in VC 
00AA: store_car 0@ position_to 5@ 6@ 4@ 
0407: create_coordinate 8@ 9@ 4@ from_car 0@ offset 0.02 0.1 0.0 
0067: 8@ -= 5@ // $ -= @ float 
0067: 9@ -= 6@ // $ -= @ float 
0067: 5@ -= 2@ // $ -= @ float 
0067: 6@ -= 3@ // $ -= @ float 
05A4: get_angle_between_vectors_origin_to 5@ 6@ and_origin_to 8@ 9@ store_to 10@ // never used in VC 
0013: 11@ *= 1000.0 // @ *= float 
0013: 7@ *= 1000.0 // @ *= float 
0013: 10@ *= 1000.0 // @ *= float 
00D6: if and
0023:   2496.0 > 11@ // float > @ 
0021:   11@ > 25.0 // @ > float 
004D: jump_if_false @HP_DRFT_12 
000A: 13@ += 1 // @ += int 
00D6: if 
0019:   13@ > 3 // @ > int 
004D: jump_if_false @HP_DRFT_96 
00D6: if and
80E1:   not player 0 pressed_button 10 
80E1:   not player 0 pressed_button 11 
004D: jump_if_false @HP_DRFT_1167 

:HP_DRFT_913
0007: 15@ = 0.0 // @ = float 

:HP_DRFT_923
05E7: 1@ = vehicle 0@ struct 
0084: 2@ = 1@ // $ = $ int 
0084: 3@ = 1@ // $ = $ int 
000A: 1@ += 112 // @ += int 
000A: 2@ += 116 // @ += int 
000A: 3@ += 132 // @ += int 
05E0: 4@ = read_memory 1@ size 4 virtual_protect 0 
05E0: 5@ = read_memory 2@ size 4 virtual_protect 0 
05E0: 6@ = read_memory 3@ size 4 virtual_protect 0 
0063: 12@ -= 4@ // @ -= @ float 
0063: 14@ -= 5@ // @ -= @ float 
0013: 12@ *= 0.2 // @ *= float 
0013: 14@ *= 0.2 // @ *= float 
0013: 6@ *= 0.95 // @ *= float 
005B: 4@ += 12@ // @ += @ float 
005B: 5@ += 14@ // @ += @ float 
005B: 6@ += 15@ // @ += @ float 
02E3: 8@ = car 0@ speed 
00D6: if 
0023:   30.0 > 8@ // float > @ 
004D: jump_if_false @HP_DRFT_1124 
0013: 4@ *= 1.008 // @ *= float 
0013: 5@ *= 1.008 // @ *= float 

:HP_DRFT_1124
05DF: write_memory 3@ size 4 value 6@ virtual_protect 0 
05DF: write_memory 1@ size 4 value 4@ virtual_protect 0 
05DF: write_memory 2@ size 4 value 5@ virtual_protect 0 
0002: jump @HP_DRFT_96 

:HP_DRFT_1167
00D6: if and
00E1:   player 0 pressed_button 10 
80E1:   not player 0 pressed_button 11 
004D: jump_if_false @HP_DRFT_1241 
00D6: if and
0025:   7@ > 11@ // @ > @ float 
0025:   11@ > 10@ // @ > @ float 
004D: jump_if_false @HP_DRFT_1224 
0002: jump @HP_DRFT_1315 

:HP_DRFT_1224
0007: 15@ = 0.001 // @ = float 
0002: jump @HP_DRFT_923 

:HP_DRFT_1241
00D6: if and
80E1:   not player 0 pressed_button 10 
00E1:   player 0 pressed_button 11 
004D: jump_if_false @HP_DRFT_913 
00D6: if and
0025:   10@ > 11@ // @ > @ float 
0025:   11@ > 7@ // @ > @ float 
004D: jump_if_false @HP_DRFT_1298 
0002: jump @HP_DRFT_1315 

:HP_DRFT_1298
0007: 15@ = -0.001 // @ = float 
0002: jump @HP_DRFT_923 

:HP_DRFT_1315
05E7: 1@ = vehicle 0@ struct 
0084: 2@ = 1@ // $ = $ int 
0084: 3@ = 1@ // $ = $ int 
000A: 1@ += 112 // @ += int 
000A: 2@ += 116 // @ += int 
000A: 3@ += 132 // @ += int 
05E0: 4@ = read_memory 1@ size 4 virtual_protect 0 
05E0: 5@ = read_memory 2@ size 4 virtual_protect 0 
05E0: 6@ = read_memory 3@ size 4 virtual_protect 0 
0063: 12@ -= 4@ // @ -= @ float 
0063: 14@ -= 5@ // @ -= @ float 
0063: 15@ -= 6@ // @ -= @ float 
0013: 12@ *= 0.05 // @ *= float 
0013: 14@ *= 0.05 // @ *= float 
0013: 15@ *= 0.02 // @ *= float 
005B: 4@ += 12@ // @ += @ float 
005B: 5@ += 14@ // @ += @ float 
005B: 6@ += 15@ // @ += @ float 
02E3: 8@ = car 0@ speed 
00D6: if 
0023:   10.0 > 8@ // float > @ 
004D: jump_if_false @HP_DRFT_1575 
0013: 4@ *= 1.008 // @ *= float 
0013: 5@ *= 1.008 // @ *= float 

:HP_DRFT_1524
00D6: if 
00E1:   player 0 pressed_button 10 
004D: jump_if_false @HP_DRFT_1558 
000B: 6@ += 0.001 // @ += float 
0002: jump @HP_DRFT_1664 

:HP_DRFT_1558
000B: 6@ += -0.001 // @ += float 
0002: jump @HP_DRFT_1664 

:HP_DRFT_1575
00D6: if 
0023:   15.0 > 8@ // float > @ 
004D: jump_if_false @HP_DRFT_1623 
0013: 4@ *= 1.004 // @ *= float 
0013: 5@ *= 1.004 // @ *= float 
0002: jump @HP_DRFT_1524 

:HP_DRFT_1623
00D6: if 
0023:   22.0 > 8@ // float > @ 
004D: jump_if_false @HP_DRFT_1664 
0013: 4@ *= 1.002 // @ *= float 
0013: 5@ *= 1.002 // @ *= float 

:HP_DRFT_1664
05DF: write_memory 3@ size 4 value 6@ virtual_protect 0 
05DF: write_memory 1@ size 4 value 4@ virtual_protect 0 
05DF: write_memory 2@ size 4 value 5@ virtual_protect 0 
0002: jump @HP_DRFT_96 
